package com.lxyk.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/*@NoArgsConstructor
@AllArgsConstructor
@Data 有时候Data注解之后拿不到get和set*/
//这是数据库不存在的实体类 但是这些字段都是数据库有的字段
public class Salary {
    /**
     * 送水工名称
     */
    private String workerName;
    /**
     * 送水工底薪
     */
    private Integer workerSalary;

    /**
     * 送水工提成
     */
    private Double workerMoney;

    /**
     * 送水数量
     */
    private Integer sendWaterCount;

    /**
     * 实发工资
     */
    private Double finalSalary;

    public Salary() {
    }

    public Salary(String workerName, Integer workerSalary, Double workerMoney, Integer sendWaterCount, Double finalSalary) {
        this.workerName = workerName;
        this.workerSalary = workerSalary;
        this.workerMoney = workerMoney;
        this.sendWaterCount = sendWaterCount;
        this.finalSalary = finalSalary;
    }

    public String getWorkerName() {
        return workerName;
    }

    public void setWorkerName(String workerName) {
        this.workerName = workerName;
    }

    public Integer getWorkerSalary() {
        return workerSalary;
    }

    public void setWorkerSalary(Integer workerSalary) {
        this.workerSalary = workerSalary;
    }

    public Double getWorkerMoney() {
        return workerMoney;
    }

    public void setWorkerMoney(Double workerMoney) {
        this.workerMoney = workerMoney;
    }

    public Integer getSendWaterCount() {
        return sendWaterCount;
    }

    public void setSendWaterCount(Integer sendWaterCount) {
        this.sendWaterCount = sendWaterCount;
    }

    public Double getFinalSalary() {
        return finalSalary;
    }

    public void setFinalSalary(Double finalSalary) {
        this.finalSalary = finalSalary;
    }

    @Override
    public String toString() {
        return "Salary{" +
                "workerName='" + workerName + '\'' +
                ", workerSalary=" + workerSalary +
                ", workerMoney=" + workerMoney +
                ", sendWaterCount=" + sendWaterCount +
                ", finalSalary=" + finalSalary +
                '}';
    }
}
